package com.tct.smartRE.fwk.impl.transform.event;

import java.util.List;
import java.util.Map;

import com.tct.smartRE.fwk.api.transform.event.IPostTransformationEvent;
import com.tct.smartRE.fwk.api.transform.event.IPreTransformationEvent;
import com.tct.smartRE.fwk.api.transform.event.ITransformationEvent;
import com.tct.smartRE.fwk.api.transform.event.ITransformationEventManager;

public class TransformationEventManager implements ITransformationEventManager {

	private final Map<String, List<IPreTransformationEvent>> preTranformationEvent;
	private final Map<String, ITransformationEvent> transformationEvent;
	private final Map<String, List<IPostTransformationEvent>> postTransformationEvent;

	public TransformationEventManager(
			Map<String, List<IPreTransformationEvent>> preTranformationEvent,
			Map<String, ITransformationEvent> transformationEvent,
			Map<String, List<IPostTransformationEvent>> postTransformationEvent) {
		this.preTranformationEvent = preTranformationEvent;
		this.transformationEvent = transformationEvent;
		this.postTransformationEvent = postTransformationEvent;
	}

	public List<IPostTransformationEvent> getPostTransformationEvent(
			String eventPoint) {
		return postTransformationEvent.get(eventPoint);
	}

	public List<IPreTransformationEvent> getPreTransformationEvent(
			String eventPoint) {
		return preTranformationEvent.get(eventPoint);
	}

	public ITransformationEvent getTransformationEvent(String eventPoint) {
		return transformationEvent.get(eventPoint);
	}

}
